<#include "../header.ftl" />
<@head title="论坛 - ${sitename}"/>
	<link media="all" href="${template_url}/style/bbs.css" rel="stylesheet">
	<script type="text/javascript" src="${template_url}/script/bbs.js"></script>
	<@nav current="论坛"/>
	<div class="container">
		<div class="grid grid-4">
			<div class="box">
				<div class="box-title">版块列表</div>
			   	<div class="box-body">
			   		<div class="typo-p">
			   			<@m.widget path="/widget/forum/nav" idle=86400 cache=false/>
			   		</div>
			   	</div>
			</div>
		</div>
		<div class="grid grid-16 last">
			<div class="forum_types">
                <p>
                    <a href="javascript:void(0);" rel="nofollow" class="cur" a="">全部帖子</a>
                    <!--
                    <a href="javascript:void(0);" rel="nofollow" class="s">精华</a>
                    <a href="javascript:void(0);" rel="nofollow" class="">热门</a>
                    -->
                </p>
                <div class="btn_post">
                    <a class="button" href="${base}/forums/topic/post?forum=${forum.id}"><i class="icon-post"></i>发表主题</a>
                </div>
            </div>
			<div class="topic_list" style="position: relative;clear:both;">
				<form method="post" action="">
					<table summary="forum_16488" cellspacing="0" cellpadding="0" class="data_table">
						<thead>
                            <tr class="tr_s">
                                <td colspan="2">
                                    <div style="height:35px;zoom:1;z-index:999">
                                        <div class="bbsType" id="bbsType">
                                            <span><em>帖子标题</em><i></i></span>
                                        </div>
                                    </div>
                                </td>
                                <td class="sign">
                                	<label title="新窗口打开"><input type="checkbox" onclick="switchTopicOpenMode()" id="topicOpenMode" checked="checked" title="新窗口打开">新窗</label>
                                </td>
                                <td class="author">作者</td>
                                <td class="nums">回复/查看</td>
                                <td class="lastpost">最后发表</td>
                            </tr>
                        </thead>
                        <tbody>
							<tr class="tr_blank">
								<td class="title" colspan="6">版块主题</td>
							</tr>
						</tbody>
                        <#if (topicPage?exists && topicPage.result?size > 0)>
	                        <#list topicPage.result as topic>
	                        	<tbody>
									<tr onmouseout="style.backgroundColor=''" onmouseover="style.backgroundColor='#f6fbff'" style="">
		    							<td class="folder"></td>
		    							<th class="title">
			    							<a href="${base}/forums/topic/${topic.id}" class="topicurl" target="_blank" style="color:red;font-weight:bold;">${topic.title}</a>
		        						</th>
		        						<td class="sign">&nbsp;</td>
		    							<td class="author">
			    							<cite>
			    								<a class="user-769104 needonline orange" href="<@userSpaceUrl name=topic.author.name />" target="_blank" rel="nofollow">${topic.author.alias}</a>
			    							</cite>
			    							<em>${topic.createTime}</em>
										</td>
										<td class="nums">
											<cite><strong>${topic.views!"0"}</strong></cite>
											<em>${topic.replys!"0"}</em>
										</td>
										<td class="lastpost">
		    							</td>
									</tr>
								</tbody>
	                        </#list>
                        </#if>
					</table>
				</form>
			</div>
			
		</div>
	</div>
<#include "../footer.ftl" />